﻿using RpcCentral.Model;
using RpcCentral.Model.DB;
using WeDonekRpc.SqlSugar;

namespace RpcCentral.DAL.Repository
{
    internal class ContainerGroupDAL : IContainerGroupDAL
    {
        private readonly IRepository<ContainerGroup> _Db;
        public ContainerGroupDAL (IRepository<ContainerGroup> repository)
        {
            this._Db = repository;
        }

        public BasicContainerGroup Find (string number)
        {
            return this._Db.Get<BasicContainerGroup>(c => c.Number == number);
        }
    }
}
